<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>数组</title>
	<script type="text/javascript">

	city=["广州","上海"];
	document.write(city);
	//如果访问数组里面全部数据，直接调用数组名就行，不用加括号


	city=["广州","上海"];
	document.write(city[1]);
	//如果利用下标访问数组里面的某个值，则用中括号




	</script>
</head>
<body>
	
</body>
</html>